﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeamRobin.BattleCity.Core.Utils;

namespace TeamRobin.BattleCity.Core.ScreenText
{
	internal class Border
	{
		public static void DrawBorder()
		{
			#region LEFT

			for (int i = -1; i < 40; i++)
			{
				ConsoleUtil.Write(-2, i, "A", ConsoleColor.Gray, ConsoleColor.Gray);
			}

			#endregion LEFT

			#region RIGHT

			for (int i = 0; i < 40; i++)
			{
				ConsoleUtil.Write(40, i, "A", ConsoleColor.Gray, ConsoleColor.Gray);
			}

			#endregion RIGHT

			#region TOP

			for (int i = -1; i < 41; i++)
			{
				ConsoleUtil.Write(i, -1, "A", ConsoleColor.Gray, ConsoleColor.Gray);
			}

			#endregion TOP

			#region BOTTOM

			for (int i = -2; i < 41; i++)
			{
				ConsoleUtil.Write(i, 40, "A", ConsoleColor.Gray, ConsoleColor.Gray);
			}

			#endregion BOTTOM
		}
	}
}

// Write(int x, int y, string symbols,ConsoleColor color, ConsoleColor backgroundColor)